import request from '@/utils/request'

// 查询支付单列表
export function listCharge_pay_order(query) {
  return request({
    url: '/charge/charge_pay_order/list',
    method: 'get',
    params: query
  })
}

// 查询支付单详细
export function getCharge_pay_order(id) {
  return request({
    url: '/charge/charge_pay_order/' + id,
    method: 'get'
  })
}

// 新增支付单
export function addCharge_pay_order(data) {
  return request({
    url: '/charge/charge_pay_order',
    method: 'post',
    data: data
  })
}

// 修改支付单
export function updateCharge_pay_order(data) {
  return request({
    url: '/charge/charge_pay_order',
    method: 'put',
    data: data
  })
}

// 删除支付单
export function delCharge_pay_order(id) {
  return request({
    url: '/charge/charge_pay_order/' + id,
    method: 'delete'
  })
}
